package com.youxin.busfoundation.common;

/**
 * 全局变量
 * @author yingde.cao
 *
 */
public class GlobalConfig {
	/**
	 * 监控到某个主机异常,保存到redis的超时时间
	 */
	public final static int NGINX_ALARM_SECONDS=120; 
	/**
	 * 日志服务名称
	 */
	public final static String LOG_SERVICE_NAME="logcenter";
	/**
	 * 七牛云配置文件
	 */
	public final static String QINYUN_ACCESS_KEY="pSXzGgYeUJIxlMPUUWDHcmlxalVgmMkMbfYI4b-h";
	public final static String QINYUN_SECRET_KEY="UVfLHuHbvmvBq3E5CAve0PsJMdSlTomck5-VdTIQ";
	
	/**
	 * 委托文件上传bucket和基础域名
	 */
	public final static String QINYUN_BUCKET_CP_DELEGATE="cp-delegate";	
	public final static String QINYUN_CP_DELEGATE_DOMAIN="http://p02fn3e40.bkt.clouddn.com/";
	
	
	public final static String QUINYUN_BUCKET_CP_WEIXIN_PAY_QUCODE="cp-weixin-pay-qrcode";
	public final static String QUINYUN_CP_WEIXIN_PAY_QUCODE_DOMAIN="http://p15hg2ebd.bkt.clouddn.com/";
	
	public final static int YEARS_DAYS=365;
	
	/**
	 * ES搜索最多展示5000条数据
	 */
	public final static long ES_SEARCH_MAX_RECORDS=5000; 
	
	/**
	 * appid:slashedon2, appKey:9a42e099dbedd955fa23d42905d0e29099503cd3 
	 * https://sdk.yuantongxun.com/rms/unicomAxBBind
	 */
	/**
	 * 电话功能 APPID,APPKEY,基础URL
	 */
	public final static String TELPHONE_APPID="slashedon2";
	public final static String TELPHONE_APPKEY="9a42e099dbedd955fa23d42905d0e29099503cd3";
	public final static String TELPHONE_BASE_URL="https://sdk.yuantongxun.com/rms/unicomAxBBind/";

	/**
	 * ES企业线索索引名称
	 */
	public final static String ES_SLS_COMPANY_INDEX="sls_company";
	public final static String[] ES_SLS_COMPANY_INDEX_TYPES={"business","spider","kpc"};
	
	public final static String ES_SLS_RESOURCE_INDEX="sls_resource";
	public final static String[] ES_SLS_RESOURCE_INDEX_TYPES={"business","spider","kpc"};
	
	/**
	 * 默认分页大小
	 */
	public final static int PAGE_SIZE=20;
	/**
	 * ES搜索超时10秒
	 */
	public final static int ES_SEARCH_TIMEOUT=10000;
	public final static long DAYS_MILLISECONDS=24*3600*1000;
	/**
	 * 默认超时7天
	 */
	public final static long DEFAULT_EXPIRES_SECOND=7*24*3600;
	public final static long DEFAULT_EXPIRES_MILLISECOND=DEFAULT_EXPIRES_SECOND*1000L;
	/**
	 * 刷新后延迟时间为30天
	 */
	public final static long DEFAULT_REFRESH_SECOND=DEFAULT_EXPIRES_SECOND*10L;
	
	public final static long DEFAULT_REFRESH_MILLISECOND=DEFAULT_REFRESH_SECOND*1000L;
	
	/**
	 * 登录获取短信验证码超时时间30分钟
	 */
	public final static int LOGIN_VERIFY_CODE_EXPIRES_SECONDS=30*60;
	/**
	 * 获取验证码的间隔
	 */
	public final static int VERIFY_CODE_INTERVAL=60;
	/**
	 * token名称
	 */
	public final static String TOKEN_NAME="token";
	
	public final static String LOG_URL="http://log.slsai.com/save";
	
	public final static int TELEPHONE_EXPIRE_TIME = 60;

}
